<h2>Danh sách người dùng</h2>
<table cellspacing="0">
    <tr>
        <th><?php echo $this->Paginator->sort('id', 'ID');?></th>
        <th><?php echo $this->Paginator->sort('username', 'Tài khoản');?></th>
        <th><?php echo $this->Paginator->sort('email', 'Email');?></th>
        <th><?php echo $this->Paginator->sort('phone', 'Số điện thoại');?></th>
        <th><?php echo $this->Paginator->sort('like', 'Thích');?></th>
        <th><?php echo $this->Paginator->sort('dislike', 'Không thích');?></th>
        <th><?php echo $this->Paginator->sort('lock', 'Khóa');?></th>
        <th><?php echo $this->Paginator->sort('role', 'Quyền');?></th>
        <th>Thao tác</th>
    </tr>
    <?php
        foreach($usersView as $user) {
            echo '<tr>';
            echo '<td>'.$user['User']['id'].'</td>';
            echo '<td>'.$user['User']['username'].'</td>';
            echo '<td>'.$user['User']['email'].'</td>';
            echo '<td>'.$user['User']['phone'].'</td>';
            echo '<td>'.$user['User']['like'].'</td>';
            echo '<td>'.$user['User']['dislike'].'</td>';
            echo '<td>'.$user['User']['lock'].'</td>';
            echo '<td>'.$user['User']['role'].'</td>';
            echo '<td>';
            echo $this->Html->link('Xem', '').' ';
            echo $this->Html->link('Sửa', '').' ';
            echo $this->Html->link('Xóa', '');
            echo '</td>';
            echo '</tr>';
        }
    ?>
</table>